package tongkeyon.create.prototype.improve;

import java.io.Serializable;

/**
 * @Author: keyon <tongkeyon@163.com>
 * @Date: 2020/2/18 11:14
 * @Version 1.0
 */
public class Sheep1 implements Cloneable, Serializable {
    private static final long serialVersionUID = 1L;


    private String name;
    private int age;

    public Sheep1() {
    }

    public Sheep1(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    @Override
    public String toString() {
        return "Sheep1{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
